package com.leejxx.wemedia.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leejxx.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author LeeJx
 * @ClassName WmNewsMaterialMapper
 * @Description TODO
 * @date 2021/2/24 23:36
 * @Version 1.0
 */
@Mapper
public interface WmNewsMaterialDao extends BaseMapper<WmNewsMaterial> {
    void saveRelationsByContent(@Param("materials") List<Integer> materials, @Param("newsId") Integer newId, @Param("type") int type);
}
